package org.linearlist;

import java.io.File;

/**
 * @author: 默苍璃
 * @date: 2023-04-06 10:36
 * <p>
 * 线性表 链式表示 节点
 */
public class Node<T> {

    /**
     * 数据域
     */
    public  T data;

    /**
     * 指针域
     */
    public Node<T> next;

    public Node(Node<T> n) {
        next = n;
    }

    public Node(T obj, Node<T> n) {
        data = obj;
        next = n;
    }

    public T getData() {
        return data;
    }

    public Node<T> getNext() {
        return next;
    }

}